<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the JsFunction class from the dart:js library, for the Dart programming language.">
  <title>JsFunction class - dart:js library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  <!-- header placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">flutter_form_builder</a></li>
    <li><a href="dart-js/dart-js-library.html">dart:js</a></li>
    <li class="self-crumb">JsFunction class</li>
  </ol>
  <div class="self-name">JsFunction</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">flutter_form_builder</a></li>
      <li><a href="dart-js/dart-js-library.html">dart:js</a></li>
      <li class="self-crumb">JsFunction class</li>
    </ol>
    
    <h5>dart:js library</h5>
    <ol>
      <li class="section-title"><a href="dart-js/dart-js-library.html#classes">Classes</a></li>
      <li><a href="dart-js/JavaScriptObject-class.html">JavaScriptObject</a></li>
      <li><a href="dart-js/JsArray-class.html">JsArray</a></li>
      <li><a href="dart-js/JsFunction-class.html">JsFunction</a></li>
      <li><a href="dart-js/JsObject-class.html">JsObject</a></li>
    
    
    
    
      <li class="section-title"><a href="dart-js/dart-js-library.html#properties">Properties</a></li>
      <li><a href="dart-js/context.html">context</a></li>
    
      <li class="section-title"><a href="dart-js/dart-js-library.html#functions">Functions</a></li>
      <li><a href="dart-js/allowInterop.html">allowInterop</a></li>
      <li><a href="dart-js/allowInteropCaptureThis.html">allowInteropCaptureThis</a></li>
    
    
    
    </ol>
  </div>

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1><span class="kind-class">JsFunction</span> class </h1></div>

    <section class="desc markdown">
      <p>A proxy on a JavaScript Function object.</p>
    </section>
    
    <section>
      <dl class="dl-horizontal">
        <dt>Inheritance</dt>
        <dd><ul class="gt-separated dark clazz-relationships">
          <li><a href="dart-core/Object-class.html">Object</a></li>
          <li><a href="dart-js/JsObject-class.html">JsObject</a></li>
          <li>JsFunction</li>
        </ul></dd>





      </dl>
    </section>

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="JsFunction.withThis" class="callable">
          <span class="name"><a href="dart-js/JsFunction/JsFunction.withThis.html">JsFunction.withThis</a></span><span class="signature">(<span class="parameter" id="withThis-param-f"><span class="type-annotation"><a href="dart-core/Function-class.html">Function</a></span> <span class="parameter-name">f</span></span>)</span>
        </dt>
        <dd>
          Returns a <a href="dart-js/JsFunction-class.html">JsFunction</a> that captures its 'this' binding and calls <code>f</code>
with the value of JavaScript <code>this</code> passed as the first argument.
          <div class="constructor-modifier features">factory</div>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="hashCode" class="property inherited">
          <span class="name"><a href="dart-js/JsObject/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="dart-core/int-class.html">int</a></span>         
        </dt>
        <dd class="inherited">
          The hash code for this object. <a href="dart-js/JsObject/hashCode.html">[...]</a>
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="dart-core/Type-class.html">Type</a></span>         
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
                  <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="apply" class="callable">
          <span class="name"><a href="dart-js/JsFunction/apply.html">apply</a></span><span class="signature">(<wbr><span class="parameter" id="apply-param-args"><span class="type-annotation"><a href="dart-core/List-class.html">List</a></span> <span class="parameter-name">args</span>, {</span> <span class="parameter" id="apply-param-thisArg"><span class="type-annotation">dynamic</span> <span class="parameter-name">thisArg</span></span> })
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd>
          Invokes the JavaScript function with arguments <code>args</code>. If <code>thisArg</code> is
supplied it is the value of <code>this</code> for the invocation.
                  
</dd>
        <dt id="callMethod" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/callMethod.html">callMethod</a></span><span class="signature">(<wbr><span class="parameter" id="callMethod-param-method"><span class="type-annotation">dynamic</span> <span class="parameter-name">method</span>, [</span> <span class="parameter" id="callMethod-param-args"><span class="type-annotation"><a href="dart-core/List-class.html">List</a></span> <span class="parameter-name">args</span></span> ])
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Calls <code>method</code> on the JavaScript object with the arguments <code>args</code> and
returns the result. <a href="dart-js/JsObject/callMethod.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="deleteProperty" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/deleteProperty.html">deleteProperty</a></span><span class="signature">(<wbr><span class="parameter" id="deleteProperty-param-property"><span class="type-annotation">dynamic</span> <span class="parameter-name">property</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
                  </dt>
        <dd class="inherited">
          Removes <code>property</code> from the JavaScript object. <a href="dart-js/JsObject/deleteProperty.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="hasProperty" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/hasProperty.html">hasProperty</a></span><span class="signature">(<wbr><span class="parameter" id="hasProperty-param-property"><span class="type-annotation">dynamic</span> <span class="parameter-name">property</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns <code>true</code> if the JavaScript object contains the specified property
either directly or though its prototype chain. <a href="dart-js/JsObject/hasProperty.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="instanceof" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/instanceof.html">instanceof</a></span><span class="signature">(<wbr><span class="parameter" id="instanceof-param-type"><span class="type-annotation"><a href="dart-js/JsFunction-class.html">JsFunction</a></span> <span class="parameter-name">type</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns <code>true</code> if the JavaScript object has <code>type</code> in its prototype chain. <a href="dart-js/JsObject/instanceof.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="dart-core/Object/noSuchMethod.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="toString" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-core/String-class.html">String</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns the result of the JavaScript objects <code>toString</code> method.
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          The equality operator. <a href="dart-js/JsObject/operator_equals.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="operator []" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/operator_get.html">operator []</a></span><span class="signature">(<wbr><span class="parameter" id="[]-param-property"><span class="type-annotation">dynamic</span> <span class="parameter-name">property</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns the value associated with <code>property</code> from the proxied JavaScript
object. <a href="dart-js/JsObject/operator_get.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="operator []=" class="callable inherited">
          <span class="name"><a href="dart-js/JsObject/operator_put.html">operator []=</a></span><span class="signature">(<wbr><span class="parameter" id="[]=-param-property"><span class="type-annotation">dynamic</span> <span class="parameter-name">property</span></span> <span class="parameter" id="[]=-param-value"><span class="type-annotation">dynamic</span> <span class="parameter-name">value</span></span>)
            <span class="returntype parameter">&#8594; void</span>
          </span>
                  </dt>
        <dd class="inherited">
          
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>




  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
    
      <li class="section-title"><a href="dart-js/JsFunction-class.html#constructors">Constructors</a></li>
      <li><a href="dart-js/JsFunction/JsFunction.withThis.html">withThis</a></li>
    
      <li class="section-title inherited">
        <a href="dart-js/JsFunction-class.html#instance-properties">Properties</a>
      </li>
      <li class="inherited"><a href="dart-js/JsObject/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-js/JsFunction-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-js/JsFunction/apply.html">apply</a></li>
      <li class="inherited"><a href="dart-js/JsObject/callMethod.html">callMethod</a></li>
      <li class="inherited"><a href="dart-js/JsObject/deleteProperty.html">deleteProperty</a></li>
      <li class="inherited"><a href="dart-js/JsObject/hasProperty.html">hasProperty</a></li>
      <li class="inherited"><a href="dart-js/JsObject/instanceof.html">instanceof</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="dart-js/JsObject/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="dart-js/JsFunction-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="dart-js/JsObject/operator_equals.html">operator ==</a></li>
      <li class="inherited"><a href="dart-js/JsObject/operator_get.html">operator []</a></li>
      <li class="inherited"><a href="dart-js/JsObject/operator_put.html">operator []=</a></li>
    
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    flutter_form_builder
      3.8.2
  </span>

  <!-- footer-text placeholder -->
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- footer placeholder -->

</body>

</html>
